'use strict';

/**
 * @param {Egg.Application} app - egg application
 */
module.exports = app => {
  const { router, controller } = app;
  // open local dir
  router.post('/api/v1/hande/getOrderList', controller.v1.hande.getOrderList);
  router.post('/api/v1/hande/getOrderDetails', controller.v1.hande.getOrderDetails);
  router.post('/api/v1/hande/printOrder', controller.v1.hande.printOrder);
  router.get('/api/v1/hande/checkPrinter', controller.v1.hande.checkPrinter);
  router.get('/api/v1/hande/getPrinterList', controller.v1.hande.getPrinterList);
  router.get('/api/v1/hande/getPrinterInfo', controller.v1.hande.getPrinterInfo);
  router.get('/api/v1/hande/getUserSetting', controller.v1.hande.getUserSetting);
  router.post('/api/v1/hande/setUserSetting', controller.v1.hande.setUserSetting);
  router.post('/api/v1/hande/printAttachment', controller.v1.hande.printAttachment);
};